<?php
class UserWeiboRepostAction extends UserAction
{
	public function __construct()
	{
		parent::__construct();
		$this->layout = 'ajax';
	}
	
	public function execute()
	{
		$id 		= (int)$this->context->get('id');
		//...do在
		if ($id){
			$weiboService	= new WeiboService();
			$weibo = $weiboService->get($id);
			if ($weibo['parent_id']){
				$weibo['parent_weibo'] = $weiboService->get($weibo['parent_id']);
				$userService	= new UserService();
				$weibo_user 	= $userService->get($weibo['usre_id']);
				$weibo['content'] = '//@'.$weibo_user['username'].':'.$weibo['content'];
			}
			$this->data['weibo']= $weibo;
		}
		
	}
}
